package com.etc.controller;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    private Logger logger = LogManager.getLogger(getClass());

    @GetMapping("sshello")
    public  String sayHello(){
        logger.info("Spring 和Spring mvc整合的sayHello控制器方法!");
        return "Spring + Spring mvc :";
    }
}
